[#if order??][#global order=order][#else][#global order='0'][/#if]
[#if column??][#global column=column][#else][#global column=''][/#if]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>精品推荐 - ${site.name}</title>
<meta http-equiv="keywords" content="${site.keywords!}"/>
<meta http-equiv="description" content="${site.description!}"/>
[#include "../include/head.html"/]
</head>

<body>
<div id="wrap">
	[#include "../include/navigate.html"/]
	<div class="clearfix" id="content">
		<div id="left">
			<p class="locationB"><span class="black">当前位置：</span><a href="${base}/index.jsp" class="a_green2">《我们》纯文学网</a><span class="location_next">&raquo;</span>精品推荐</p>
			<p class="title noBorderBot"><span class="title_text">精品推荐</span></p>
			<div class="article_index">
				<div class="article_indexCon clearfix">
					<div class="index_unit">
						<p class="index_unit_left">类别：</p>
						<p class="index_unit_right">
						<a href="${base}/alone/boutiqueComment.jsp?order=${order}" [#if column=='']class="current"[/#if]>全部</a>
						[@cms_channel_list]
						[#list tag_list as c]
						<a href="${base}/alone/boutiqueComment.jsp?order=${order}&column=${c.id}" [#if column=='${c.id}']class="current"[/#if]>${c.name}</a>
						[/#list]
						[/@cms_channel_list]
						</p>
					</div>
					<div class="index_unit">
						<p class="index_unit_left">排序方式：</p>
						<p class="index_unit_right">
						<a href="${base}/alone/boutiqueComment.jsp?order=0&column=${column}" [#if order=='0']class="current"[/#if]>发布时间</a>
						<a href="${base}/alone/boutiqueComment.jsp?order=2&column=${column}" [#if order=='2']class="current"[/#if]>回复数</a>
						</p>
					</div>
				</div>
				<div class="article_indexbot"></div>
			</div>
			[@cms_comment_page channelId=column orderBy=order recommend='true' count='20']
			<ul class="boutique_comment">
				[#list tag_pagination.list as c]
				<li id="_comment_id_${c.id}">
					<div class="boutique_comment_con clearfix">
						<div class="bc_text">
							<p class="bc_text_con">${c.textHtml!}</p>
							<div class="bc_text_info clearfix">
								<p class="bc_text_commenter"><a href="#" class="a_green2">----${(c.commentUser.username)!"匿名网友"}</a> ${c.createTime}</p>
								<p class="bc_text_operate"><a href="javascript:void(0)" class="bc_btn_replay a_orange">回复(${c.replys!'0'})</a></p>
							</div>
						</div>
						<div class="bc_photo">
						[#if c.commentUser??]
							<img src="/images/avatar/small/${c.commentUser.id}.jpg" width="60" height="60" />
						[#else]
							<img src="/images/avatar/small/default.jpg" width="60" height="60" />
						[/#if]
						</div>
					</div>
					<div class="boutique_comment_replay">
						<div class="bcr_pointer"></div>
						<form class="replyForm" action="${base}/reply.jsp" method="post">
						<input type="hidden" name="commentId" value="${c.id}"/>
						<div class="bcr_con">
							<div class="bcr_con_top clearfix"><p class="bcr_title">回复评论</p><div class="bcr_close"></div></div>
							<div class="bcr_inputArea">
								<div class="bcr_inputArea_center"><textarea name="replyText"></textarea></div>
								<div class="bcr_inputArea_bottom"></div>
							</div>
							<p class="bcr_btn_publish"><button class="btn_01" type="submit">发表</button></p>
							<ul class="bcr_list">
							</ul>
						</div>
						</form>
					</div>
				</li>
				[/#list]
				<script type="text/javascript">
				$.each($("form"), function(i, n){
					Cms.reply(n);
				});
				//回复弹出框
				$("a.bc_btn_replay").click(function(){
					var replyDiv = $(this).parents("li").find("div.boutique_comment_replay");
					replyDiv.slideToggle();
					var parentsLi = $(this).parents("li");
					var commentId = parentsLi.find("input[name='commentId']").val();
					Cms.replyList("${base}",parentsLi.find(".bcr_list"),{commentId:commentId});
				});
				
				//关闭回复框
				$("div.bcr_close").click(function(){
					$(this).parents("div.boutique_comment_replay").slideUp();
				});
				</script>
			</ul>
			<div class="pagination">[@cms_pagination sysPage='1'/]</div>
			[/@cms_comment_page]
		</div>
        <div id="right">
        	<div class="boxB_bar"><span class="floatLeft">编辑推荐</span><a href="${base}/alone/boutique.jsp" class="more">更多>></a></div>
            <div class="boxB_con">
            	[@cms_content_list channelId='' recommend='1' count='12' titLen='10' descLen='20' append='...' orderBy='2']
            	[#list tag_list as a]
            	<p [#if a_index == 5 && a_has_next]class="recommend_list rl_line"[#else]class="recommend_list"[/#if]><span class="recommend_name">[<a href="${base}/space.jsp?u=${a.user.id}">${a.author}</a>]</span><a href="${a.url}" class="a_green2" title="${a.title}">${a.title}</a></p>
            	[/#list]
            	[/@cms_content_list]
            </div>
        	<div class="bar_B"><p class="bar_B_title">活跃作者</p></div>
            <ul class="active_author clearfix">
            [@cms_user_list orderBy='3' count='12']
            	[#list tag_list as u]
				<li><a href="${base}/space.jsp?u=${u.id}"><img src="/images/avatar/small/${u.id}.jpg" width="60" height="60" />${u.username}</a></li>
            	[/#list]
            [/@cms_user_list]
            </ul>
			</div>
        </div>
    </div>
    [#include "../include/foot.html"/]
</div>
</body>
</html>